<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增海报</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">渠道类型</label>
            <div class="controls">
                <input type="radio" name='mold' value='1' checked> 首页轮播图
                <input type="radio" name='mold' value='2'> 首页今日特供轮播图
                
<!--                <select name="mold">
                    <option value="1">首页轮播图</option>
                    <option value="2">APP</option>
                </select>-->
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">标题</label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="">
            </div>
        </div>
        
         <div class="form-item">
            <label class="item-label">上传图片</label>
            <div class="controls">
                <input type="file" name="photo" />
            </div>
        </div>
       
     <div class="form-item">
            
            <div class="controls"> 
                <div class="alert alert-danger input-large">
                APP 中的海报及轮播图设置说明<br/>
                1.点击图片跳转到商品：输入商品ID， 跳转URL为空<br/>
                2.点击图片跳转到URL：输入跳转URL地址， 商品ID为空<br/>
                3.下面都不填写，点击图片没有反映。<br/>
                </div>
            </div>
        </div>
        
        <div class="form-item">
            <label class="item-label">商品ID</label><span class="check-tips">（输入需要跳转进入的商品PID）</span>
            <div class="controls">
                <input type="text" class="text input-large" name="pid" value="">
            </div>
        </div>
        
        <div class="form-item">
            <label class="item-label">跳转URL</label><span class="check-tips">（输入需要跳转进入的URL）</span>
            <div class="controls">
                <input type="text" class="text input-large" name="urlstr" value="">
            </div>
        </div>
        
        
        
       
        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('appposter/index')}');
    </script>
</block>
